package com.elitedatai.mchtest.mission.enums;


public enum MissionType {

    PATROL(1, "巡检"),
    UNKNOWN(-1, "Unknown");

    private int val;

    private String desc;

    MissionType(int val, String desc) {
        this.val = val;
        this.desc = desc;
    }

    public int getVal() {
        return this.val;
    }

    public String getDesc() {
        return this.desc;
    }

    public static MissionType find(int val) {
        if (val == PATROL.val) {
            return PATROL;
        }
        return UNKNOWN;
    }
}
